package com.niubility.exception;

import org.apache.log4j.Logger;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class CustomException1 extends Exception{
    Logger logger = Logger.getLogger("CustomException1");
    public CustomException1(HttpServletResponse response , String s) {
        //super("删除失败",new Exception("底层业务逻辑错误"));
        logger.debug("业务处理失败");
        System.out.println("业务处理失败con");
        try {
            response.getWriter().write(s);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
